package cn.com.nes.mybatis.agent.ope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 协议标准项配置
 * </p>
 *
 * @author nes
 * @since 2023-03-24
 */
@TableName("a_standard_data_item")
public class AStandardDataItem extends Model<AStandardDataItem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 厂商id
     */
    @TableField("manufacture_id")
    private String manufactureId;
    /**
     * 协议id
     */
    @TableField("protocol_id")
    private String protocolId;
    /**
     * 标准项
     */
    @TableField("standard_data_item")
    private String standardDataItem;
    /**
     * 协议数据项id
     */
    @TableField("data_item_id")
    private String dataItemId;
    /**
     * 控制详情id
     */
    @TableField(" function_detail_id")
    private String functionDetailId;
    /**
     * 控制指令对应的数据项采集值
     */
    @TableField("data_item_value")
    private Integer dataItemValue;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getManufactureId() {
        return manufactureId;
    }

    public void setManufactureId(String manufactureId) {
        this.manufactureId = manufactureId;
    }

    public String getProtocolId() {
        return protocolId;
    }

    public void setProtocolId(String protocolId) {
        this.protocolId = protocolId;
    }

    public String getStandardDataItem() {
        return standardDataItem;
    }

    public void setStandardDataItem(String standardDataItem) {
        this.standardDataItem = standardDataItem;
    }

    public String getDataItemId() {
        return dataItemId;
    }

    public void setDataItemId(String dataItemId) {
        this.dataItemId = dataItemId;
    }

    public String getFunctionDetailId() {
        return functionDetailId;
    }

    public void setFunctionDetailId(String functionDetailId) {
        this.functionDetailId = functionDetailId;
    }

    public Integer getDataItemValue() {
        return dataItemValue;
    }

    public void setDataItemValue(Integer dataItemValue) {
        this.dataItemValue = dataItemValue;
    }

    public static final String ID = "id";

    public static final String MANUFACTURE_ID = "manufacture_id";

    public static final String PROTOCOL_ID = "protocol_id";

    public static final String STANDARD_DATA_ITEM = "standard_data_item";

    public static final String DATA_ITEM_ID = "data_item_id";

    public static final String FUNCTION_DETAIL_ID = " function_detail_id";

    public static final String DATA_ITEM_VALUE = "data_item_value";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AStandardDataItem{" +
                ", id=" + id +
                ", manufactureId=" + manufactureId +
                ", protocolId=" + protocolId +
                ", standardDataItem=" + standardDataItem +
                ", dataItemId=" + dataItemId +
                ",  functionDetailId=" + functionDetailId +
                ", dataItemValue=" + dataItemValue +
                "}";
    }
}
